package cn.dglydrpy.fundmanagement.service;

import cn.dglydrpy.fundmanagement.service.dto.PortfolioDto;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;

public interface IPortfolioService {
    int savePortfolio(PortfolioDto portfolioDto);
    void updatePortfolio(PortfolioDto portfolioDto);
    void deletePortfolio(Long id);
    PortfolioDto getPortfolioById(Long id);
    Page<PortfolioDto> getPortfoliosByConditions(String portfolioName, int pageNo, int pageSize);
    List<PortfolioDto> getAllPortfolios();
    void addFundToPortfolio(Long portfolioId, String fundCode, String shares, String buyPrice, String buyTime);
    void removeFundFromPortfolio(Long portfolioId, Long fundId);
}